package homework01;

public class Testing1 extends Homework1Solver{
    public static void main(String[] args) {

        //作业第一题:等比求值
        Testing1 testing1 = new Testing1();
        System.out.println("第一题答案:" + testing1.calculateGeometricSeriesSum());

        //作业第二题:调和级数求值
        System.out.print("第二题答案:");
        new Testing1().calculateHarmonicSeries(); //匿名对象调用父类方法

        //作业第三题:求没有数码9的三位数
        Homework1Solver great = new Homework1Solver(); //创建父类对象
        System.out.print("第三题答案:");
        great.countAndSumThreeDigitsWithoutNine();

        //作业第四题:显示随机IPC
        System.out.print("第四题答案:");
        new Homework1Solver().generateRandomIpcCode(); //匿名对象调用本类方法

    }
}
